package com.ecjtu.stadiumre_servations.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ecjtu.stadiumre_servations.entity.domain.Venue;
import com.ecjtu.stadiumre_servations.entity.dto.VenueDTO;
import com.ecjtu.stadiumre_servations.response.Result;
import org.springframework.web.multipart.MultipartFile;

public interface VenueService extends IService <Venue>{
    Result findAll (Page<Venue> page);
    Result findByType(Page<Venue> page, String venueType);
    Result findByName(Page<Venue> page, String venueName);
    Result addVenue(VenueDTO venueDTO,MultipartFile imageFile);
    /*
    查看详细/
     */
    Result findById(String id);
    Result deleteVenue(String venueId);
    Result updateVenue(String id,VenueDTO venueDTO);

    Result findAvailable(Page<Venue> page);
    Result getAvailableTimeSlots(String venueId, String date);
}
